]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
bluetooth: Add missing 'BluetoothHardwareAirplaneMode' to D-Bus interface
authorMario Sanchez Prada <mario@endlessm.com>
Tue, 17 Oct 2017 16:51:48 +0000 (18:51 +0200)
committerMario Sanchez Prada <mario@endlessm.com>
Tue, 17 Oct 2017 19:16:38 +0000 (20:16 +0100)
This D-Bus property was never been added here, which caused inconsistencies
under some scenarios (e.g. coming back from suspend) if some devices were
previously paired, since _sync() would then make the bluetooth menu visible
unconditially, because of the proxied property evaluating to 'false'.

Adding this to the D-Bus interface makes sure that it's no longer undefined
and returns the right value, fixing the bug.

https://bugzilla.gnome.org/show_bug.cgi?id=789110

js/ui/status/bluetooth.js

index e1e0b2e3c947c8554d5cd374c936e6dd61c92b0f..bdc48e9537b6610aa3482f12c32102e2e204058e 100644 (file)
@@ -15,6 +15,7 @@ const RfkillManagerInterface = '<node> \
 <interface name="org.gnome.SettingsDaemon.Rfkill"> \
 <property name="BluetoothAirplaneMode" type="b" access="readwrite" /> \
 <property name="BluetoothHasAirplaneMode" type="b" access="read" /> \
+<property name="BluetoothHardwareAirplaneMode" type="b" access="readwrite" /> \
 </interface> \
 </node>';